﻿using AssetsSys.Dto;
using AssetsSys.Dto.Assets;
using AssetsSys.Dto.Department;
using AssetsSys.Dto.Fixup;
using AssetsSys.Dto.Permission;
using AssetsSys.Dto.Source;
using AssetsSys.Dto.Status;
using AssetsSys.Dto.Type;
using AssetsSys.Dto.User;
using AssetsSys.model;
using AssetsSys.Model;
using AutoMapper;

namespace AssetsSys.BLL.AutoMapper
{
    public class OrganizationProfile : Profile
    {
        protected override void Configure()
        {
            Mapper.CreateMap<BaseEntity, BaseModel>();
            Mapper.CreateMap<BaseModel, BaseEntity>();

            Mapper.CreateMap<Assets, AssetsModel>();
            Mapper.CreateMap<AssetsModel, Assets>();

            Mapper.CreateMap<Source, SourceModel>();
            Mapper.CreateMap<SourceModel, Source>();

            Mapper.CreateMap<Fixup, FixupResponseModel>();
            Mapper.CreateMap<FixupResponseModel, Fixup>();

            Mapper.CreateMap<Status, StatusModel>();
            Mapper.CreateMap<StatusModel, Status>();

            Mapper.CreateMap<Department, DepartmentModel>();
            Mapper.CreateMap<DepartmentModel, Department>();

            Mapper.CreateMap<Department, DepartmentModel>();
            Mapper.CreateMap<DepartmentModel, Department>();

            Mapper.CreateMap<Permission, PermissionModel>();
            Mapper.CreateMap<PermissionModel, Permission>();

            Mapper.CreateMap<Type, TypeModel>();
            Mapper.CreateMap<TypeModel, Type>();

            Mapper.CreateMap<User, UserModel>();
            Mapper.CreateMap<UserModel, User>();
        }
    }
}
